package com.project.user.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.project.common.base.BaseEntity;

/**
 * 订单明细表 user_order_detail
 *
 * @author administrator
 * @date 2021-02-23
 */
public class UserOrderDetail extends BaseEntity {
    private static final long serialVersionUID = 1L;


    /**
     * 订单编号
     */
    private Long orderId;
    /**
     * 餐饮编号
     */
    private Long goodsId;
    /**
     * 名称
     */
    private String goodsName;
    /**
     * 首图
     */
    private String imgUrl;
    /**
     * 原料
     */
    private String attr1;
    /**
     * 品牌
     */
    private String attr2;
    /**
     * 价格
     */
    private Double goodsPrice;
    /**
     * 数量
     */
    private Integer goodsNum;

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setAttr1(String attr1) {
        this.attr1 = attr1;
    }

    public String getAttr1() {
        return attr1;
    }

    public void setAttr2(String attr2) {
        this.attr2 = attr2;
    }

    public String getAttr2() {
        return attr2;
    }

    public void setGoodsPrice(Double goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public Double getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsNum(Integer goodsNum) {
        this.goodsNum = goodsNum;
    }

    public Integer getGoodsNum() {
        return goodsNum;
    }

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("orderId", getOrderId())
                .append("goodsId", getGoodsId())
                .append("goodsName", getGoodsName())
                .append("imgUrl", getImgUrl())
                .append("attr1", getAttr1())
                .append("attr2", getAttr2())
                .append("goodsPrice", getGoodsPrice())
                .append("goodsNum", getGoodsNum())
                .toString();
    }

    public UserOrderDetail() {
    }

    public UserOrderDetail(Long orderId, Long goodsId, Integer goodsNum) {
        this.orderId = orderId;
        this.goodsId = goodsId;
        this.goodsNum = goodsNum;
    }
}
